<?php
	class Conexion{

		public function conectar(){
							#localhost, user,password,bd,puertomysql
			$mysqli = new mysqli('localhost','root','root','urossma',3306);

			if($mysqli->connect_errno)
				header('Location: Error404.html');
				#echo "fallo la conexion";

			$mysqli->set_charset('utf8');

			return $mysqli;
		}
	}

	$Conexion = new Conexion();
	$Conexion->conectar();
?>